<?php

namespace app\commands;

use yii\console\Controller;

use shmilyzxt\queue\Worker;

class WorkerController extends Controller
{
    public function actionIndex($queueName='default',$attempt=10,$memeory=128,$sleep=1 ,$delay=0){
        Worker::listen(\Yii::$app->queue,$queueName,$attempt,$memeory,$sleep,$delay);
    }
}